<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{:C('WEB_SITE_NAME')}跳转提示</title>
<link rel="shortcut icon" href="tubiao.ico" >
<style type="text/css">
*{ padding:0; margin:0; font-size:14px}
body{  font-family: '微软雅黑'; color: #000; font-size: 16px;background:#30333F;}
a:link,a:visited{text-decoration:none;color:#0068a6}
a:hover,a:active{color:#ff6600;text-decoration: underline}
.system-message{ zoom:1; width:450px; height:182px;position:absolute;top:44%;left:50%;margin:-87px 0 0 -230px;text-align:center;background-color: #fff;box-shadow: 0 0 26px #041A36;border-top: 8px solid #3A6EA5;}
.system-message h1{ padding:20px 0 0 18px;   font-size: 26px;font-weight: normal;display:block;line-height: 44px;text-align: left;color: #8D9CAA;text-indent:50px;
background:url() no-repeat 20px 26px;}
.system-message .jump{ padding-top: 10px;text-align:left;padding-left:70px;}
.system-message .success,.system-message .error{ clear:both;padding:10px 0 0 70px; font-size:16px; height:50px;overflow:hidden;display:block;max-width:330px;line-height:26px;text-align:left;}
.system-message .detail{ font-size: 12px; line-height: 20px; margin-top: 12px; display:none}
.other {text-align:left;padding-left:70px;}
</style>
</head>
<body>
<div class="system-message">
	<h1>恭喜您!</h1>
	<p class="success"><?php echo($message); ?></p>
	<p class="detail"></p>
	<p class="jump">
	<a id="href" href="<?php echo($jumpUrl); ?>"><b id="wait"><?php echo($waitSecond); ?></b> 秒后页面将自动跳转</a>
	</p>
	<div class="other">
		<a href="<?php echo($jumpUrl); ?>">立即跳转</a> 
		<a href="javascript:void(0);" onclick="stop()">停止跳转</a> 
	</div>
</div>
<script type="text/javascript">
(function(){
 var wait = document.getElementById('wait'),href = document.getElementById('href').href;
 var interval = setInterval(function(){
		wait.innerHTML = wait.innerHTML * 1;
     	var time = --wait.innerHTML;
     	if(time <= 0) {
     		location.href = href;
     		clearInterval(interval);
     	};
     }, 1000);
  window.stop = function (){
         console.log(111);
            clearInterval(interval);
 }
 })();
</script>
</body>
</html>
